
import Request from "../request";
import {  EditAdminProps } from "../type/admin";
import {  tablePrams } from "../type/table";
export const getUserAdminTable = (data: tablePrams) => {
  return Request({
    url: "/adminTable",
    method: "post",
    data,
  });
};
export const adminEdit = (data: EditAdminProps) => {
  return Request({
    url: "/editAdmin",
    method: "post",
    data,
  });
};
export const adminCreate = (data: any) => {
  return Request({
    url: "/adminCreate",
    method: "post",
    data,
  });
};

export const deladminTable = (data: any) => {
  return Request({
    url: "/deladminTable",
    method: "post",
    data,
  });
};
